<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>131-css-全正面正方体.html</title>
	<style>
		*{
			margin: 0;
			padding: 0;
		}
		ul{
			list-style: none;
			width: 200px;
			height: 200px;
			margin: 100px auto;
			position: relative;
			transform: rotateX(9deg) rotateY(-22deg);
			transform-style: preserve-3d;
		}
		li{
			width: 200px;
			height: 200px;
			line-height: 200px;
			text-align: center;
			position: absolute;
			left: 0;
			top: 0;
		}
		li:nth-child(1){
			background-color: blue;
			transform: rotateX(90deg) translateZ(100px);
		}
		li:nth-child(2){
			background-color: red;	
			transform: rotateX(180deg) translateZ(100px);	
		}
		li:nth-child(3){
			background-color: purple;	
			transform: rotateX(270deg) translateZ(100px);
		}
		li:nth-child(4){
			background-color: skyblue;	
			transform: rotateX(360deg) translateZ(100px);
		}
		li:nth-child(5){
			background-color: green;	
			transform: rotateY(-90deg) translateZ(100px);
		}
		li:nth-child(6){
			background-color: yellow;
			transform: rotateY(90deg) translateZ(100px);
		}
	</style>
</head>
<body>
	<ul>
		<li>1</li>
		<li>2</li>
		<li>3</li>
		<li>4</li>
		<li>5</li>
		<li>6</li>
	</ul>
</body>
</html>